FROM node:latest

RUN mkdir -p /home/www/docker-reg-web && mkdir -p /etc/docker-web
WORKDIR /home/www/docker-reg-web
COPY . /home/www/docker-reg-web
COPY config/docker-reg-web.json /etc/docker-web/docker-web.json

RUN npm install
EXPOSE 3000

ENTRYPOINT ["npm", "run"]
CMD ["pro"]